FROM mytool:1.2
ENV mysql_user root
ENV mysql_pass 123456
ENV mysql_host  172.17.0.2
ENV mysql_db test
COPY ./bakup.sh /
RUN chmod +x bakup.sh
ENV cron_conf  "*       *       *       *       *  "
RUN echo "$cron_conf /bakup.sh" >>  /var/spool/cron/crontabs/root
ENTRYPOINT ["crond","-f"]
